/**
 * 依赖目录
 * @param resolve
 * @param isTestable
 * @param data
 * @returns {*}
 */

export default class  LibDirLoad{
    constructor(){

        this.libsModule={};
        this.libsDirs=[];
    }
    load(moduleName){
        this._load(moduleName)
        return this.libsDirs;
    }

    _load(moduleName){
        // 读取文件成功
       // let data= qguan.root.findData(moduleName,"","","libDir")
        let data=` ,test/com/quanTest/aop  , ,dirLoad  ,  //只会使用前面四个参数，后面可以写注释
 ,test/com/quanTest/service , ,dirLoad  ,//只会使用前面四个参数，后面可以写注释`
        let lint=data.split(/[\r\n]/);
        for (let i=0;i<lint.length;i++){
            let word =lint[i].split(',');
            this.libsDirs.push([word[0].trim(),word[1].trim(),word[2].trim(),word[3].trim()])
            if(!this.libsModule[word[0].trim()]){
                this.libsModule[word[0].trim()]=true;
                this._load(word[0].trim());
            }
        }
    }



}


